/** * Fastly Insights.js * Build generated: 2019-06-07 * https://github.com/fastly/insights.js * * Copyright (c) 2019, Fastly, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ !function(){"use strict";function t(t){for(var e=Object(t),n=1;n>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)}function n(t,e){return b?navigator.sendBeacon(t,e):fetch(t,{method:"POST",body:e,keepalive:!0})}function r(e){return t({},e,{client_asn:parseInt(e.client_asn,10),resolver_asn:parseInt(e.resolver_asn,10)})}function i(t){return m[t]?m[t]:(m[t]=fetch(t).then(function(t){return t.json()}).then(r),m[t])}function o(t){return function(e){return{id:e,type:"pop",host:e+"-v4."+t}}}function u(t){return t[Math.floor(Math.random()*t.length)]}function s(t,e,n){for(var r=e||4,i=n||0,s=t.pops,c=t.hosts.pop,a=o(c),f=s.slice(0,r),l=s.slice(r),h=f.map(a),v=[].concat(l),y=[],p=l.length1&&void 0!==arguments[1]?arguments[1]:5e3;return new Promise(function(n,r){var i=void 0,o=new he(function(e,r){var o=e.getEntriesByName(t);(i=o.shift())&&(r.disconnect(),n(i))});setTimeout(function(){i||(o.disconnect(),r(new Error("Timed out observing resource timing")))},e);try{o.observe({entryTypes:["resource"]})}catch(t){r(t)}})}function l(t){var e={};for(var n in t){var r=O(t[n]);"number"!==r&&"string"!==r||(e[n]=t[n])}return e}function h(t,e){return Object.keys(t).reduce(function(n,r){return e.indexOf(r)<0&&(n[r]=t[r]),n},{})}function v(t){return Object.keys(t).reduce(function(e,n){return e[c(n)]=t[n],e},{})}function y(t){return t.reduce(function(t,e){return t.then(function(t){return e().then(function(e){return[].concat(T(t),[e])})})},Promise.resolve([]))}function p(t){for(var e=[].concat(T(t)),n=e.length,r=void 0,i=void 0;n;)i=Math.floor(Math.random()*n--),r=e[n],e[n]=e[i],e[i]=r;return e}var d=function(t,e){return Object.keys(t).reduce(function(n,r){return n[e+r]=t[r],n},{})},g=e(),b="sendBeacon"in navigator&&"function"==typeof navigator.sendBeacon,m={},O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},k=function(){function t(t,e){for(var n=0;n"},r)}},{key:"execute",value:function(){var t=this;return Promise.all([this.run(),i("https://"+this.config.testId+"."+this.config.hosts.lookup+"/l")]).then(function(e){return t.generateResult.apply(t,[t.config].concat(T(e)))}).then(function(e){return t.result=e}).then(this.encode).then(function(e){return t.send(e)}).then(function(){return t.result}).catch(function(){return Promise.resolve(t.result)})}}],[{key:"hasCustomConfiguration",get:function(){return!1}}]),e}(),P=Math.ceil,A=Math.floor,I=function(t){return isNaN(t=+t)?0:(t>0?A:P)(t)},C=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},x=a(function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)}),M=a(function(t){var e=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=e)}),F=(M.version,function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}),R=function(t,e,n){if(F(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}},N=function(t){return"object"===(void 0===t?"undefined":O(t))?null!==t:"function"==typeof t},z=function(t){if(!N(t))throw TypeError(t+" is not an object!");return t},B=function(t){try{return!!t()}catch(t){return!0}},L=!B(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),Q=x.document,D=N(Q)&&N(Q.createElement),K=function(t){return D?Q.createElement(t):{}},Y=!L&&!B(function(){return 7!=Object.defineProperty(K("div"),"a",{get:function(){return 7}}).a}),q=function(t,e){if(!N(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!N(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!N(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!N(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},J=Object.defineProperty,U=L?Object.defineProperty:function(t,e,n){if(z(t),e=q(e,!0),z(n),Y)try{return J(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t},V={f:U},W=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},G=L?function(t,e,n){return V.f(t,e,W(1,n))}:function(t,e,n){return t[e]=n,t},X=function t(e,n,r){var i,o,u,s=e&t.F,c=e&t.G,a=e&t.S,f=e&t.P,l=e&t.B,h=e&t.W,v=c?M:M[n]||(M[n]={}),y=v.prototype,p=c?x:a?x[n]:(x[n]||{}).prototype;c&&(r=n);for(i in r)(o=!s&&p&&void 0!==p[i])&&i in v||(u=o?p[i]:r[i],v[i]=c&&"function"!=typeof p[i]?r[i]:l&&o?R(u,x):h&&p[i]==u?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(u):f&&"function"==typeof u?R(Function.call,u):u,f&&((v.virtual||(v.virtual={}))[i]=u,e&t.R&&y&&!y[i]&&G(y,i,u)))};X.F=1,X.G=2,X.S=4,X.P=8,X.B=16,X.W=32,X.U=64,X.R=128;var Z=X,H=G,$={}.hasOwnProperty,tt=function(t,e){return $.call(t,e)},et={},nt={}.toString,rt=function(t){return nt.call(t).slice(8,-1)},it=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==rt(t)?t.split(""):Object(t)},ot=function(t){return it(C(t))},ut=Math.min,st=function(t){return t>0?ut(I(t),9007199254740991):0},ct=Math.max,at=Math.min,ft=function(t,e){return t=I(t),t<0?ct(t+e,0):at(t,e)},lt=x["__core-js_shared__"]||(x["__core-js_shared__"]={}),ht=function(t){return lt[t]||(lt[t]={})},vt=0,yt=Math.random(),pt=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++vt+yt).toString(36))},dt=ht("keys"),gt=function(t){return dt[t]||(dt[t]=pt(t))},bt=function(t){return function(e,n,r){var i,o=ot(e),u=st(o.length),s=ft(r,u);if(t&&n!=n){for(;u>s;)if((i=o[s++])!=i)return!0}else for(;u>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}}(!1),mt=gt("IE_PROTO"),Ot=function(t,e){var n,r=ot(t),i=0,o=[];for(n in r)n!=mt&&tt(r,n)&&o.push(n);for(;e.length>i;)tt(r,n=e[i++])&&(~bt(o,n)||o.push(n));return o},wt="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),kt=Object.keys||function(t){return Ot(t,wt)},_t=L?Object.defineProperties:function(t,e){z(t);for(var n,r=kt(e),i=r.length,o=0;i>o;)V.f(t,n=r[o++],e[n]);return t},jt=x.document,St=jt&&jt.documentElement,Tt=gt("IE_PROTO"),Et=function(){},Pt=function(){var t,e=K("iframe"),n=wt.length;for(e.style.display="none",St.appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("